#include <iostream>
using namespace std;

int main()
{
    ios::sync_with_stdio(false);
    cin.tie(0), cout.tie(0);
    int n;
    int a, b, c;
    cin >> n;
    while (n--)
    {
        cin >> a >> b >> c;
        if (a + c == 2 * b)
            cout << "Yes";
        else
        {
            if (2 * b < a + c)
            {
                if ((a + c) % (2 * b) == 0)
                    cout << "Yes";
                else
                    cout << "No";
            }
            else
            {
                if ((2 * b - c) % a == 0 || (2 * b - a) % c == 0)
                    cout << "Yes";
                else
                    cout << "No";
            }
        }
        cout << endl;
    }
    return 0;
}